/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.ufrn.dca.scontrol.control;

import br.ufrn.dca.controle.QuanserClient;
import br.ufrn.dca.controle.QuanserClientException;

/**
 *
 * @author marco
 */
public class ThreadComunication implements Runnable{

    int counter;

    float limitColuna;

    long tempoFinal;


    public ThreadComunication() {
        counter = 0;
    }
    

    @Override
    public void run() {
        while(counter < 100){
            System.out.println("Teste "+ counter);
            try{
                Thread.sleep(100);
                setCounter(getCounter()+1);
            }catch(Exception ex){
                ex.printStackTrace();
            }
            setTempoFinal(System.currentTimeMillis());
        }
    }

    public int getCounter() {
        return counter;
    }

    public void setCounter(int counter) {
        this.counter = counter;
    }

    public long getTempoFinal() {
        return tempoFinal;
    }

    public void setTempoFinal(long tempoFinal) {
        this.tempoFinal = tempoFinal;
    }

    public float getLimitColuna() {
        return limitColuna;
    }

    public void setLimitColuna(float limitColuna) {
        this.limitColuna = limitColuna;
    }

}
